package cn.edu.tju.fctl.service;

import cn.edu.tju.fctl.entities.Mark;
import cn.edu.tju.fctl.entities.User;
import cn.edu.tju.fctl.util.Evaluation;

import java.util.List;

import java.util.List;

/**
 * Created by catold on 15/12/17.
 */
public interface IUserService {
    /**
     * 通过主键查询user
     * @param id
     * @return
     */
    User findById(int id);

    /**
     * 通过用户名和密码查询用户
     * @param number
     * @param pwd
     * @return
     */
    User findByNameAndPwd(String number, String pwd);

    /**
     * 通过用户名和密码查询用户
     * @param number
     * @return
     */
    User findByNumber(String number);

    int updateUser(User user);

    //return type? what's the performance?  by userId? who can use it?
    //Object getPerformance();

    List<Mark> findUserMarks(int id);
}
